package com.guoning.office_system.mapper;

import com.guoning.office_system.model.Role;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("RoleMapper")
public interface RoleMapper {
    Long selectRoleByConditionCount(Criteria criteria);

    List<Role> selectRoleByCondition(Criteria criteria);

    List<Role> selectByCode(Role role);

    int deleteByIds(List<Role> roles);

    int deleteByPrimaryKey(Long id);

    int updateEnableByIds(List<Role> roles);

    int updateDisableByIds(List<Role> roles);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
}